package example;

import client.Client;
import client.CmdClient;
import client.SocketClient;

import java.util.Scanner;


public class CmdClientUsage {

    public static void main(String[] args) {
        // 创建SocketClient对象
        SocketClient socketClient = new SocketClient("localhost", 12347);

        // 创建CmdClient对象并传入SocketClient
        CmdClient cmdClient = new CmdClient(socketClient);

        // 启动交互模式
        cmdClient.startInteractiveMode();
    }
}
